package com.tianhui.consignortwofei.mvp.model.enty;

import android.os.Parcel;
import android.os.Parcelable;

import com.baidu.mapapi.model.LatLng;

/**
 * @author fgs
 * @date 2020/8/31
 * @description
 **/
public class SourcePathInfo implements Parcelable {
    public String createBy;
    public String createTime;
    public String customerno;
    public String modifyBy;
    public String modifyTime;
    public String placecity;
    public String placeparentcode;
    public String placecitycode;
    public String placecounty;
    public String placecustomer;
    public String placedetails="";
    public String placeno;
    public String placeprovince;
    public String placeremark;
    public String placetel="";
    public String placeusername="";
    public String roleid;
    public String type;
    public String address;

    public int whitchSet;
    public boolean isWhereGet;
    public String  shuAddress="";
    public LatLng latLng;

    public SourcePathInfo() {

    }

    public static final Creator<SourcePathInfo> CREATOR = new Creator<SourcePathInfo>() {
        @Override
        public SourcePathInfo createFromParcel(Parcel in) {
            SourcePathInfo pathInfo = new SourcePathInfo();
            pathInfo.createBy = in.readString();
            pathInfo.createTime = in.readString();
            pathInfo.customerno = in.readString();
            pathInfo.modifyBy = in.readString();
            pathInfo.modifyTime = in.readString();
            pathInfo.placecity = in.readString();
            pathInfo.placeparentcode = in.readString();
            pathInfo.placecitycode = in.readString();
            pathInfo.placecounty = in.readString();
            pathInfo.placecustomer = in.readString();
            pathInfo.placedetails = in.readString();
            pathInfo.placeno = in.readString();
            pathInfo.placeprovince = in.readString();
            pathInfo.placeremark = in.readString();
            pathInfo.placetel = in.readString();
            pathInfo.placeusername = in.readString();
            pathInfo.roleid = in.readString();
            pathInfo.type = in.readString();
            pathInfo.address = in.readString();

            pathInfo.whitchSet = in.readInt();



            return pathInfo;
        }

        @Override
        public SourcePathInfo[] newArray(int size) {
            return new SourcePathInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(createBy);
        dest.writeString(createTime);
        dest.writeString(customerno);
        dest.writeString(modifyBy);
        dest.writeString(modifyTime);
        dest.writeString(placecity);
        dest.writeString(placeparentcode);
        dest.writeString(placecitycode);
        dest.writeString(placecounty);
        dest.writeString(placecustomer);
        dest.writeString(placedetails);
        dest.writeString(placeno);
        dest.writeString(placeprovince);
        dest.writeString(placeremark);
        dest.writeString(placetel);
        dest.writeString(placeusername);
        dest.writeString(roleid);
        dest.writeString(type);
        dest.writeString(address);

        dest.writeInt(whitchSet);
    }
}
